import React, { Component } from 'react'

export default class Test extends Component {
  state = {
    c: 1,
  }
  render() {
    console.log('test更新了')
    return (
      <div>
        Test,
        <p>{this.state.c}</p>
        <button
          onClick={() => {
            this.setState({
              c: 9,
            })
          }}
        >
          +
        </button>
      </div>
    )
  }
}
